home *** CD-ROM | disk | FTP | other *** search
Wrap
{\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f1\fmodern Courier;} \paperw12820 \paperh5320 \margl120 \margr120 \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs28 register window workspace speaker listener\ \ Q: I want to drag icons from the Workspace browser into a window in my application. How do I set this up?\ \ A: Here's the code you need:\ \ \ unsigned int globalWindowNumber;\ \ NXConvertWinNumToGlobal([theWindow windowNum], &globalWindowNumber);\ [[self appSpeaker] registerWindow:globalWindowNumber\ toPort:[[self appListener] listenPort]];\ \ \ Q: I tried this and it still doesn't work.\ \ A: Is theWindow deferred, and if so, has it been brought onscreen? Deferred windows don't have PostScript windows associated with them until their first orderFront:; with no PostScript window, windowNum returns zero.\ \ QA497 \ \ Valid for 1.0\ Valid for 2.0\ \